@extends('home/layout/index')

@section('content')
<div class="user-info">
		<!--标题 -->
		<div class="am-cf am-padding">
			<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg"><a href="/home/user/index">个人资料</a></strong> / <small>Personal&nbsp;information</small></div>
		</div>
		<hr/>

		<!--头像 -->
		<div class="user-infoPic" style="height:190px">
			<form action="/home/user/editpic" method="post" enctype="multipart/form-data">
				<input type="hidden" name="id" value="{{ session('id') }}">
				{{ csrf_field() }}
				<div class="filePic">
					<input type="file" class="inputPic" allowexts="gif,jpeg,jpg,png,bmp" name="userpic">
					<img class="am-circle am-img-thumbnail" src="/uploads/images/userpic/{{ $data['userpic'] }}" />
					
				</div>
				<div><input type="submit" value="点击提交" style="font-size:16px;background:#66FFFF;position:absolute;left:30px;top:130px;"></div>
				
			</form>
			<p class="am-form-help">头像</p>
			<div class="info-m">
				<div><b>用户名：<i>{{ $data['username'] }}</i></b></div>
				<div class="u-level">
					<span class="rank r2">
			             <s class="vip1"></s><a class="classes" href="#">
			             欢迎你:
			             </a>
						@if( $data['level']  ==1 ) 
			             <a href="" style="color:red">普通会员</a>
			             @elseif( $data['level']  == 2)
			             <a href="" style="color:red">vip会员</a>
			             @endif
						
		            </span>
				</div>
				<div class="u-safety">
					<a href="safety.html">
					 账户余额
					<span class="u-profile"><i class="bc_ee0000" style="width: 60px;color:red" width="0">{{ $data['money'] }} </i>元</span>
					</a><br>
					<a href="safety.html">
					 积分
					<span class="u-profile"><i class="bc_ee0000" style="width: 60px;color:red" width="0">{{ $data['scores'] }} </i>分</span>
					</a>
				</div>
			</div>

		</div>

		 <!--个人信息 -->
		<div class="info-main">
			<form class="am-form am-form-horizontal" action="/home/user/update" method="post">
			<input type="hidden" name="id" value="{{ session('id')}}">
				{{ csrf_field() }}
				<div class="am-form-group">
					<label for="user-name2" class="am-form-label">用户名</label>
					<div class="am-form-content">
						<input type="text" id="user-name2" value="{{ $data['username']}}" name="username">
					</div>
				</div>
				<div class="am-form-group">
					<label for="user-name2" class="am-form-label">昵称</label>
					<div class="am-form-content">
						<input type="text" id="user-name2" value="{{ $data['nickname']}}" name="nickname">
					</div>
				</div>
		
				
				<div class="am-form-group">
					<label for="user-phone" class="am-form-label">电话</label>
					<div class="am-form-content">
						<input id="user-phone"  type="tel" value="{{ $data['tel']}}" name="tel">
		
					</div>
				</div>
				<div class="am-form-group">
					<label for="user-email" class="am-form-label">电子邮件</label>
					<div class="am-form-content">
						<input id="user-email" type="email" value="{{ $data['email']}}" name="email">
		
					</div>
				</div>
				
				<div class="info-btn">
					<input type="submit" value="保存修改" class="am-btn am-btn-danger">
					
				</div>
		
			</form>
		</div>

	</div>

@endsection